package com.ccrfid.rmc6.lbservice3.pojo.msg;

public class MsgLocateActive {
    private Long cardNumber;
    private Integer currentLocator;
    private Double x;
    private Double y;
    private Double accuracy;
    private Integer currentFloorNumber;
    private Long time;

    public MsgLocateActive(Long cardNumber, Long time) {
        this.cardNumber = cardNumber;
        this.time = time;
        this.accuracy = 0.0;
    }

    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    public Integer getCurrentLocator() {
        return currentLocator;
    }

    public void setCurrentLocator(Integer currentLocator) {
        this.currentLocator = currentLocator;
    }

    public Double getX() {
        return x;
    }

    public void setX(Double x) {
        this.x = x;
    }

    public Double getY() {
        return y;
    }

    public void setY(Double y) {
        this.y = y;
    }

    public Double getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(Double accuracy) {
        this.accuracy = accuracy;
    }

    public Integer getCurrentFloorNumber() {
        return currentFloorNumber;
    }

    public void setCurrentFloorNumber(Integer currentFloorNumber) {
        this.currentFloorNumber = currentFloorNumber;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "MsgLocateActive{" +
                "cardNumber=" + cardNumber +
                ", currentLocator=" + currentLocator +
                ", currentPos=[" + x + "," + y + "]" +
                ", accuracy=" + accuracy +
                ", currentFloorNumber=" + currentFloorNumber +
                ", time=" + time +
                '}';
    }
}
